<?php
class Cl_SearchManager extends WdkManager 
{
	/**
	 * 	생성자
	 */
	function __construct()
	{
		parent::__construct();
		$this->dbo = Wdk::model(basename(__DIR__));
	}
	
	protected function newObj()
	{
		return Wdk::get(basename(__DIR__));
	}
	
	public function rank($num=3, $period=7)
	{
		try
		{
			return $this->dbo->search_rank($num, $period);
		}
		catch(NoRecordException $e)
		{
			return array();
		}
	}
}